Skip to content

Bump neo4j driver / Improve connection handling in CLI #3218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 29, 2024

Conversation

CarsonF
Copy link
Member

@CarsonF CarsonF commented May 29, 2024

  • Bump neo4j driver
  • Patch neo4j driver to stop preventing the process from closing when waiting to connect.
    This is felt in CLI (console/REPL), where a command could finish before DB connection is created or needed. This is also exacerbated by the fact that sometimes the socket connection doesn't emit data (from server, though I'm not convinced it's an actual server problem) in these short windows. So the driver is left waiting for a successful response to a logon command, but it never shows up.
  • Allow the process to close while waiting for waitForRootUserId()
    Like the above, if the retry loop is a timed out waiting state, don't let that block the process from closing.
  • Patch neo4j driver to fix infinite loop with errors in transactions.
    This will be released in 5.21 tomorrow(?) but applying now since we are sensitive to this.
  • Don't run neo4j migrations in REPL
  • Share neo4j queries asking for server info.
    Now multiple calls asking for this (or using this to "wait for successful connection"), will share a single underlying promise. If the promise is successful, it will be cached for 3 minutes.

@CarsonF CarsonF requested a review from a team May 29, 2024 16:19
Copy link
Contributor

@bryanjnelson bryanjnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Hoping this fixes `dropDb()` functionality which is called on shutdown.
@CarsonF CarsonF changed the title Bump neo4j driver / Improve handling in CLI Bump neo4j driver / Improve connection handling in CLI May 29, 2024
@CarsonF CarsonF merged commit 613abfa into develop May 29, 2024
15 checks passed
@CarsonF CarsonF deleted the improve/repl-neo4j branch May 29, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants